<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title>${title}</title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
		<#include "common/am.reference.ftl" />
	</head>
	<body class="${configs["skinName"]}">
		<div class="page-content">
			<div class="row">
			<#if viewMode !="view">
			<#include "common/breadcrumb.ftl">
			</#if>
				<form id="form" role="form" class="form-horizontal" method="post" action="${base}/${form_action}">
					<div class="col-xs-12">
						<div class="widget-box">
							<div class="widget-body">
								<input type="hidden" name="id" id="id" value="${model.id}" <#if viewMode == "view">disabled</#if>>
								<input type="hidden" name="uploadFlag" id="uploadFlag" value="${model.uploadFlag}" <#if viewMode == "view">disabled</#if>>
								<#if viewMode == "view">
								<div class="widget-header widget-header-flat">
									<h5 class="lighter">
										${module}
									</h5>
								</div>
								<#else>
								<div class="alert alert-warning">
									<strong>提示!</strong>
									<strong style="color:#dd514c;">出现红框</strong>的表示不能为空
								</div>
								</#if>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        所属分公司
                                    </label>
                                    <div class="col-sm-6">
                                        <select id="companyId" name="companyId" class="chosen-select form-control"  data-placeholder="请选择所属分公司" <#if viewMode == "view">disabled</#if>>
                                            <option value="">请选择所属分公司</option>
                                            <#if companyList?exists && companyList?size gt 0>
                                            <#list companyList as item>
                                            <option value="${item.companyId}"<#if model.companyId == item.companyId>selected</#if> >${item.ownerName}</option>
                                            </#list>
                                            </#if>
                                        </select>
                                        <input type="hidden" name="companyName" value="${model.companyName}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆所在城市
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="Address" name="Address" value="${model.getAddress()}" class="form-control"  placeholder="请输入车辆所在城市">
                                        <span class="lbl">车辆所在城市（注册地行政区划代码） 车辆在平台的注册地，见GB/T2260</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆号牌
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="VehicleNo" name="VehicleNo" value="${model.getVehicleNo()}" class="form-control"  placeholder="请输入车辆号牌">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车牌颜色
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="vehicleColor" name="vehicleColor" value="${model.vehicleColor}" class="form-control"  placeholder="请输入车牌颜色">
                                        <span class="lbl">车牌颜色 见JT/T 697.7-2014中5.6</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        核定载客位
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="Seats" name="Seats" value="${model.getSeats()}" class="form-control"  placeholder="请输入核定载客位">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆厂牌
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="Brand" name="Brand" value="${model.getBrand()}" class="form-control"  placeholder="请输入车辆厂牌">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆型号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="Model" name="Model" value="${model.getModel()}" class="form-control"  placeholder="请输入车辆型号">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆类型
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="VehicleType" name="VehicleType" value="${model.getVehicleType()}" class="form-control"  placeholder="请输入车辆类型">
                                        <span class="lbl">车辆类型 以机动车行驶证为准</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆所有人
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="OwnerName" name="OwnerName" value="${model.getOwnerName()}" class="form-control"  placeholder="请输入车辆所有人">
                                        <span class="lbl">车辆所有人 应与《机动车登记证书》所注明的车辆所有人一致</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车身颜色
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="VehicleColor" name="VehicleColor" value="${model.getVehicleColor()}" class="form-control"  placeholder="请输入车身颜色">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        发动机号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="EngineId" name="EngineId" value="${model.getEngineId()}" class="form-control"  placeholder="请输入发动机号">
                                        <span class="lbl">发动机号 以机动车行驶证为准</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆VIN码
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="VIN" name="VIN" value="${model.getVIN()}" class="form-control"  placeholder="请输入车辆VIN码">
                                        <span class="lbl">车辆VIN码 以机动车行驶证为准</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆注册日期
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="CertifyDateA" name="CertifyDateA" value="${model.getCertifyDateA()}" class="form-control"  placeholder="请输入车辆注册日期">
                                        <span class="lbl">车辆注册日期 以机动车行驶证为准 YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆燃料类型
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="FuelType" name="FuelType" value="${model.getFuelType()}" class="form-control"  placeholder="请输入车辆燃料类型">
                                        <span class="lbl">车辆燃料类型 见JT/T697.7-2014中4.1.4.15</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        发动机排量
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="EngineDisplace" name="EngineDisplace" value="${model.getEngineDisplace()}" class="form-control"  placeholder="请输入发动机排量">
                                        <span class="lbl">发动机排量 单位：毫升</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆照片文件编号
                                    </label>
                                    <div class="col-sm-6">
										<#if viewMode !="view">
										<input type="file" id="headImageFile" name="file" value="" class="form-control" data-input="headImageInput" data-image="headImagePreview">
                                        </#if>
                                        <input type="hidden" id="headImageInput" name="headImg" value="${model.headImg}"/>
                                        <img id="headImagePreview" alt="" src="<#if model.getPhotoId()?exists && model.getPhotoId()?length gt 0>${model.getPhotoId()}</#if>" height="60" style="display:<#if model.headImg?exists && model.headImg?length gt 0>block<#else>none</#if>" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        运输证字号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="Certificate" name="Certificate" value="${model.getCertificate()}" class="form-control"  placeholder="请输入运输证字号">
                                        <span class="lbl">运输证字号 见JT/T 415-2006中5.4.1，地市字别可包含三个汉字。使用示例：黑龙江哈尔滨市发放的道路运输证表示为：黑 交运管许可 哈 字230100000001</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆运输证发证机构
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="TransAgency" name="TransAgency" value="${model.getTransAgency()}" class="form-control"  placeholder="请输入车辆运输证发证机构">
                                        <span class="lbl">车辆运输证发证机构 全称</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆经营区域
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="TransArea" name="TransArea" value="${model.getTransArea()}" class="form-control"  placeholder="请输入车辆经营区域">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆运输证有效期起
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="TransDateStart" name="TransDateStart" value="${model.getTransDateStart()}" class="form-control"  placeholder="请输入车辆运输证有效期起">
                                        <span class="lbl">车辆运输证有效期起 YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆运输证有效期止
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="TransDateStop" name="TransDateStop" value="${model.getTransDateStop()}" class="form-control"  placeholder="请输入车辆运输证有效期止">
                                        <span class="lbl">车辆运输证有效期止 YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆初次登记日期
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="CertifyDateB" name="CertifyDateB" value="${model.getCertifyDateB()}" class="form-control"  placeholder="请输入车辆初次登记日期">
                                        <span class="lbl">车辆初次登记日期 YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆检修状态
                                    </label>
                                    <div class="col-sm-6">
                                        <select id="FixState" name="FixState" class="select-chosen form-control"  <#if viewMode == "view">disabled</#if> >
                                            <option value="">请选择车辆检修状态</option>
                                            <option value="0" <#if "0" == model.getFixState()>selected="selected"</#if> >未检修</option>
                                            <option value="1" <#if "1" == model.getFixState()>selected="selected"</#if> >已检修</option>
                                            <option value="2" <#if "2" == model.getFixState()>selected="selected"</#if> >未知</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆下次年检时间
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="NextFixDate" name="NextFixDate" value="${model.getNextFixDate()}" class="form-control"  placeholder="请输入车辆下次年检时间">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        车辆年度审验状态
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="CheckState" name="CheckState" value="${model.getCheckState()}" class="form-control"   placeholder="请输入车辆年度审验状态">
                                        <span class="lbl">车辆年度审验状态 见JT/T 415-2006中5.4.4</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        发票打印设备序列号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="FeePrintId" name="FeePrintId" value="${model.getFeePrintId()}" class="form-control"   placeholder="请输入发票打印设备序列号">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        卫星定位装置品牌
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="GPSBrand" name="GPSBrand" value="${model.getGPSBrand()}" class="form-control"   placeholder="请输入卫星定位装置品牌">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        卫星定位装置型号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="GPSModel" name="GPSModel" value="${model.getGPSModel()}" class="form-control"   placeholder="请输入卫星定位装置型号">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        卫星定位装置IMEI号
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="GPSIMEI" name="GPSIMEI" value="${model.getGPSIMEI()}" class="form-control"  placeholder="请输入卫星定位装置IMEI号">
                                        <span class="lbl"></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        卫星定位装置安装日期
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="GPSInstallDate" name="GPSInstallDate" value="${model.getGPSInstallDate()}" class="form-control"   placeholder="请输入卫星定位装置安装日期">
                                        <span class="lbl">卫星定位装置安装日期 YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        报备日期
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="RegisterDate" name="RegisterDate" value="${model.getRegisterDate()}" class="form-control"   placeholder="请输入报备日期">
                                        <span class="lbl">报备日期 车辆信息向服务所在地出租汽车行政主管部门报备日期YYYYMMDD</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        服务类型
                                    </label>
                                    <div class="col-sm-6">
                                        <select id="CommercialType" name="CommercialType" class="select-chosen form-control"  <#if viewMode == "view">disabled</#if> >
                                            <option value="">请选择服务类型</option>
                                            <option value="1" <#if 0 == model.getCommercialType()>selected="selected"</#if> >网络预约出租汽车</option>
                                            <option value="2" <#if 1 == model.getCommercialType()>selected="selected"</#if> >巡游出租汽车</option>
                                            <option value="3" <#if 1 == model.getCommercialType()>selected="selected"</#if> >私人小客车合乘</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        运价类型编码
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="FareType" name="FareType" value="${model.getFareType()}" class="form-control"   placeholder="请输入运价类型编码">
                                        <span class="lbl">运价类型编码 由网约车公司定义，与A.4.6运价信息接口一一对应</span>
                                    </div>
                                </div>


                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        状态
                                    </label>
                                    <div class="col-sm-6">
                                        <select id="State" name="State" class="select-chosen form-control"  <#if viewMode == "view">disabled</#if> >
                                            <option value="">请选择状态</option>
                                            <option value="0" <#if 0 == model.getState()>selected="selected"</#if> >有效</option>
                                            <option value="1" <#if 1 == model.getState()>selected="selected"</#if> >失效</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        操作标识
                                    </label>
                                    <div class="col-sm-6">
                                        <select id="Flag" name="Flag" class="select-chosen form-control"  <#if viewMode == "view">disabled</#if> >
                                            <option value="">请选择操作标识</option>
                                            <option value="1" <#if 1 == model.getFlag()>selected="selected"</#if> >新增</option>
                                            <option value="2" <#if 2 == model.getFlag()>selected="selected"</#if> >更新</option>
                                            <option value="3" <#if 3 == model.getFlag()>selected="selected"</#if> >删除</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        更新时间
                                    </label>
                                    <div class="col-sm-6">
                                        <input type="text" id="UpdateTime" name="UpdateTime" value="${model.getUpdateTime()}" class="form-control"  placeholder="请输入更新时间" disabled>
                                        <span class="lbl">更新时间 网约车平台完成数据更新的时间 YYYYMMDDhhmmss</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                        是否启用
                                    </label>
                                    <div class="col-sm-4">
                                        <input class="ace ace-switch ace-switch-5" type="checkbox" name="enabled" <#if model == null || model.enabled>checked="checked"</#if> >
                                        <span class="lbl"></span>
                                    </div>
                                </div>
								<#if viewMode != "view">
								<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button id="btnSubmit" class="btn btn-info" type="submit">
											<i class="fa fa-check bigger-110"></i>
											提 交
										</button>
									</div>
								</div>
								</#if>
							</div>
						</div>
					</div>
				</form>
			</div>	
		</div>
		<script type="text/javascript">
		$(function(){
			$('.select-chosen').chosen();
			$('#companyId').chosen();
            $('#companyId').change(function(){
                var companyId = $(this).val();
                var companyName = $(this).find('option[value="'+companyId+'"]').text();
                $('input[type="hidden"][name="companyName"]').val(companyName);
            });
            $('#companyName').trigger('change');
			$('#form').validator();
		})
		</script>
	</body>
</html>